import request from '@/utils/request'

// 查询资讯页面列表
export function listproject(query: any) {
    return request({
        url: '/system/project/list',
        method: 'get',
        params: query
    })
}

// 查询资讯页面详细
export function getproject(id: number) {
    return request({
        url: '/system/project/' + id,
        method: 'get'
    })
}

// 新增资讯页面
export function addproject(data: any) {
    return request({
        url: '/system/project',
        method: 'post',
        data: data
    })
}

// 修改资讯页面
export function updateproject(data: any) {
    return request({
        url: '/system/project',
        method: 'put',
        data: data
    })
}

// 删除资讯页面
export function delproject(id: number) {
    return request({
        url: '/system/project/' + id,
        method: 'delete'
    })
}
